package io.terminus.lego.shinda.service.model

import io.terminus.lego.shinda.service.annotation.NoArg
import java.util.*
import javax.persistence.*

/**
 * @author wangmeng
 * @date 2018/4/14
 */
@NoArg
@Entity
@Table(name = "user_oauth_relations")
data class UserOauthRelation(
        @field:Id
        @field:GeneratedValue(strategy = GenerationType.IDENTITY)
        val id: Long? = null,
        val userId: Long? = null,
        val providerId: String,
        val providerUserId: String,
        val originalJson: String? = null,
        val createdAt: Date? = null,
        val updatedAt: Date? = null
)